import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter_juwo/common/common_index.dart';
import 'package:flutter_juwo/ui/custom/real_rich_text.dart';

class NotLoginPage extends StatefulWidget {
  @override
  _NotLoginPageState createState() => _NotLoginPageState();
}

class _NotLoginPageState extends State<NotLoginPage> {
  @override
  Widget build(BuildContext context) {
    return Material(
      type: MaterialType.transparency,
      child: new Center(
        child: InkWell(
          onTap: (){  this.goLogin();},
          child: Container(
            padding: EdgeInsets.all(ScreenUtil().setWidth(30)),
            child: RealRichText([
              TextSpan(
                  text: "请",
                  style: TextStyles.custom(
                      34, Colours.appC3, Font.PingFangMedium)),
              TextSpan(
                  text: "登录",
                  style: TextStyles.custom(
                      36, Colours.appC13, Font.PingFangMedium),
                  recognizer: TapGestureRecognizer()
                    ..onTap = () {
                      this.goLogin();
                    }),
              TextSpan(
                  text: "后，进行查看",
                  style: TextStyles.custom(
                      34, Colours.appC3, Font.PingFangMedium)),
            ]),
          ),
        ),
      ),
    );
  }

  void goLogin() {
    NavigatorUtils.push(context, Routes.login);
  }
}
